package com.study.signin_demo2.class03;

import java.util.Comparator;

/**
 * @author whx
 * @date 2022/2/21
 */
public class UserComparator implements Comparator<User> {
    @Override
    public int compare(User o1, User o2) {
        return o1.getAge() - o2.getAge();
    }
}
